import request from '@/utils/request'

// 查询七率电列表
export function listElec_sum(query) {
  return request({
    url: '/productionProcess/elec_sum/list',
    method: 'get',
    params: query
  })
}

// 查询七率电详细
export function getElec_sum(id) {
  return request({
    url: '/productionProcess/elec_sum/' + id,
    method: 'get'
  })
}

// 新增七率电
export function addElec_sum(data) {
  return request({
    url: '/productionProcess/elec_sum',
    method: 'post',
    data: data
  })
}

// 新增七率电
export function addElec_auto(data) {
  return request({
    url: '/productionProcess/elec_sum/auto',
    method: 'post',
    data: data
  })
}

// 修改七率电
export function updateElec_sum(data) {
  return request({
    url: '/productionProcess/elec_sum',
    method: 'put',
    data: data
  })
}

// 删除七率电
export function delElec_sum(id) {
  return request({
    url: '/productionProcess/elec_sum/' + id,
    method: 'delete'
  })
}
